import React, { Component } from 'react'

export default class App extends Component {
  state = {
    bannerList: [], // 1111111111
    proList: [] // 22222222222
  }

  componentDidMount () {
    // 1111111111
    fetch('http://121.89.205.189/api/banner/list').then(res => res.json())
      .then(res => {
        this.setState({
          bannerList: res.data
        })
      })
    // 22222222222
    fetch('http://121.89.205.189/api/pro/list').then(res => res.json())
      .then(res => {
        this.setState({
          proList: res.data
        })
      })
  }
  render() {
    return (
      <div>
        
      </div>
    )
  }
}
